package queue;

import java.text.SimpleDateFormat;
import java.util.Date;

public class MyTask implements Runnable {
	public void run() {
        try {
			Thread.sleep(1000);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
		SimpleDateFormat bartDateFormat = new SimpleDateFormat(
				"yyyy_MM_dd_HH_mm_ss");
		Date date = new Date();
		String datename = bartDateFormat.format(date);
		System.out.println(date);
	}

}
